/*
  Copyright 2009 Smart Enterprise Solution Corp.
  Email: contact@ses.vn - Website: http://www.ses.vn
  KimNgan Project.
*/
using System;
using System.Data;
using System.Configuration;
using System.Collections;

using VINETLIFE.DAL;
using VINETLIFE.DO;
/// <summary>
/// Summary description for cmsCommentBL
/// </summary>
namespace VINETLIFE.BL
{
    public class cmsCommentBL
    {
        #region Private Variables
        cmsCommentDAL objcmsCommentDAL;
        #endregion

        #region Public Constructors
        public cmsCommentBL()
        {
            //
            // TODO: Add constructor logic here
            //
            objcmsCommentDAL = new cmsCommentDAL();
        }
        #endregion

        #region Public Methods
        public int Insert(cmsCommentDO objcmsCommentDO)
        {
            return objcmsCommentDAL.Insert(objcmsCommentDO);
        }

        public int Update(cmsCommentDO objcmsCommentDO)
        {
            return objcmsCommentDAL.Update(objcmsCommentDO);

        }

        public int Delete(cmsCommentDO objcmsCommentDO)
        {
            return objcmsCommentDAL.Delete(objcmsCommentDO);

        }
        public DataTable SelectByArt(int ArtID)
        {
            return objcmsCommentDAL.SelectByArt(ArtID);
        }
        public int DeleteAll()
        {
            return objcmsCommentDAL.DeleteAll();
        }

        public cmsCommentDO Select(cmsCommentDO objcmsCommentDO)
        {
            return objcmsCommentDAL.Select(objcmsCommentDO);
        }

        public ArrayList SelectAll1()
        {
            return objcmsCommentDAL.SelectAll1();
        }

        public DataTable SelectAll()
        {
            return objcmsCommentDAL.SelectAll();
        }



        #endregion

        public DataTable SelectByProductId(int productId)
        {
            return objcmsCommentDAL.SelectByProductId(productId);
        }
        public DataTable SelectByProductAndReply(int productId, int replyCommentID)
        {
            return objcmsCommentDAL.SelectByProductAndReply(productId, replyCommentID);
        }
        public DataTable CommentXetDuyet_Filter(int DoiTacID, int isAccepted)
        {
            return objcmsCommentDAL.CommentXetDuyet_Filter(DoiTacID, isAccepted);
        }

        public void XetDuyetNhieuBinhLuan(string commentIDList, bool isAccepted, int userID)
        {
            objcmsCommentDAL.XetDuyetNhieuBinhLuan(commentIDList, isAccepted, userID);
        }
        public DataTable SelectByPermission(int userType, int bienTapVienID)
        {
            return objcmsCommentDAL.SelectByPermission(userType, bienTapVienID);
        }
        public void DeleteMultiComment(string commentIDList)
        {
            objcmsCommentDAL.DeleteMultiComment(commentIDList);
        }
    }

}
